package com.hbjycl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hbjycl.dao.TeacherDao;
import com.hbjycl.entity.Student;
import com.hbjycl.entity.Teacher;
import com.hbjycl.service.TeacherService;

@Service
public class TeacherServiceImpl extends BaseServiceImpl<Teacher, String> implements TeacherService
{
    @Resource
    private TeacherDao teacherDao;
    
    @Resource
    public void setBaseDao(TeacherDao teacherDao)
    {
        super.setBaseDao(teacherDao);
    }
    
    @Override
    public boolean isExistByUsername(String username)
    {
        return teacherDao.isExistByUsername(username);
    }
    
    @Override
    public Teacher getTeacherByUsername(String username)
    {
        return teacherDao.getTeacherByUsername(username);
    }

    @Override
    public List<Student> getStudentList(String username)
    {
        return teacherDao.getStudentList(username);
    }

    @Override
    public boolean deleteTeacherStudent(String teacherId)
    {
     
        return teacherDao.deleteTeacherStudent(teacherId);
    }

    @Override
    public List<Teacher> getLockedAccounts()
    {
        return teacherDao.getLockedAccounts();
    }

}
